<?php
function TinyURL($u){
    return file_get_contents('http://shot.com/api/api-create.php?url='.$u);
}
echo TinyURL("http://www.baidu.com");
?>
